//
//  RootVC.m
//  Lakes
//
//  Created by 张杰 on 16/7/3.
//  Copyright © 2016年 张杰. All rights reserved.
//
#import "MenuVC.h"
#import "RootVC.h"
#import "InBoxVC.h"

@interface RootVC ()

@end

@implementation RootVC

static RootVC *rootVC;

+ (instancetype)shareInstance{
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
    
        rootVC = [RootVC new];
    
    });
    
    return rootVC;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self setting];
    
    
}


- (void)setting{

    self.leftDrawerViewController = [MenuVC new];
    
    [self setCenterVC:[InBoxVC new]];
    
    self.openDrawerGestureModeMask = MMOpenDrawerGestureModeAll;
    
    self.closeDrawerGestureModeMask = MMCloseDrawerGestureModeAll;
    
    self.showsShadow = YES;

}


- (void)setCenterVC:(UIViewController *)centerVC{
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:centerVC];
    
    [self setCenterViewController:nav withCloseAnimation:YES completion:nil];
    
}

@end
